package com.zhentao.day03.pm;

public class Person {

  String name ;
  int age ;

  public Person (){
    this.name = "张三";
    this.age = 18;
  }

  public Person (String name , int age ){
    this(); // Person();
  }

  public static void main(String[] args) {
    Person person = new Person("asdf",1000);
    System.out.println("person.name = " + person.name);
    System.out.println("person.age = " + person.age);
  }


  public void run(){}

  public void say(){
    // 因为在本类中, 一般情况下方法名不会重复, 直接调用的话, 可以省略this关键字。
    // this.run(); // 本身对象的run方法
    run();
  }
}
